#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char **argv) {
  char curDir[300];
  getcwd(curDir, 300);
  printf("Current Dir: %s\n", curDir);
  long limit = pathconf(curDir, _PC_NAME_MAX);
  printf("_PC_NAME_MAX: %ld\n", limit);
  return 0;
}
